<template>
  <div>
    <h2 class="count">我是Count组件</h2>
    <h2>num:{{num}}</h2>
    <h2>doubleNum:{{doubleNum}}</h2>
  </div>
</template>

<script>
import {mapGetters, mapState} from "vuex";

export default {
  name: "Count",
  computed:{
    ...mapState(['num']),
    ...mapGetters(['doubleNum'])
  }
}
</script>

<style scoped>

</style>